﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp7
{
    class Student : Person
    {
        private string major;
        private string grade;

        public string Major
        {
            get { return this.major; }
            set { this.major = value; }
        }
        public string Grade
        {
            get { return this.grade; }
            set { this.grade = value; }
        }
        public Student(int Id, string Name, string Sex, int Cardid, int Tel) : base(Id, Name, Sex, Cardid, Tel) { }
        


        public void A()
        {
            Console.WriteLine("学生编号：{0},学生名：{1}，性别:{2}，身份证号：{3}，电话号码:{4}，专业:{5}，年级:{6}",
       id, name, sex, cardid, tel, major, grade);
        }
    }
}
